Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODNameSpace


ReadFromStorage

The ReadFromStorage method reads the content of this name space from the specified storage-unit view.

void ReadFromStorage (in ODStorageUnitView view);
view
A reference to the storage-unit view from which the data is to be read.
DISCUSSION
You call this method to read in the content of a name space that was written to a storage unit using the WriteToStorage method.

The content of this name space is stored in the storage unit as a single stream of data. The focus context for the specified storage-unit view should be the value from which the name space is to be read.

This method does not remove the existing content of this name space, but it will overwrite any entry that has the same key as an entry from the storage unit. After this method executes successfully, this name space contains new entries corresponding to entries read from the storage unit.

EXCEPTIONS
kODErrInvalidNSName
The stored name does not match the name of this name space.
SEE ALSO
The ODNameSpace::WriteToStorage method (page 433).
The ODStorageUnitView class (page 725).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help